rm -rf ~/.lotusminerDevnet
rm -rf ~/.lotusDevnet
rm -rf ~/.lotus*
rm -rf ~/.genesis-sectors
rm -rf ~/log/*
rm -rf  /var/tmp/filecoin-parents/*
kill  -9 $(ps aux|grep lotus|awk '{print $2}')

export RUSTFLAGS="-C target-cpu=native -g"
export FFI_BUILD_FROM_SOURCE=1

make 2k

export IPFS_GATEWAY="https://proof-parameters.s3.cn-south-1.jdcloud-oss.com/ipfs/"
export CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__"
export CGO_CFLAGS="-D__BLST_PORTABLE__"
export RUSTFLAGS="-C target-cpu=native -g"
export FFI_BUILD_FROM_SOURCE=1
export RUST_LOG=debug
export LOTUS_SKIP_GENESIS_CHECK=_yes_

./lotus fetch-params 2048
./lotus-seed pre-seal --sector-size 2k --num-sectors 2
./lotus-seed genesis new localnet.json
./lotus-seed genesis add-miner localnet.json ~/.genesis-sectors/pre-seal-t01000.json

./lotus --repo=~/.lotusDevnet daemon --lotus-make-genesis=devgen.car --genesis-template=localnet.json --bootstrap=false  2>&1 |tee -a ~/daemon.log